/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ar.com.wholeconsulting.pacc.pdf;

import java.io.*;
//import com.justformspdf.pdf.*;

public class JustFormsPDFExample01 {

	public static void main(String[] args) throws Exception {

//		FileInputStream fis = new FileInputStream("C:\\JustFormsPDF\\examples\\AddressForm32A2.pdf");
//		PDF pdf = new PDF(new PDFReader(fis));
//		Form form = pdf.getForm();
//
//		FormText name = (FormText) form.getElement("Name");
//		name.setValue("John K. Baker");
//
//		FormCheckbox addressType = (FormCheckbox) form.getElement("AddressTypePerm");
//		addressType.check(true);
//
//		FormComboBox suffix = (FormComboBox) form.getElement("Suffix");
//		//suffix.setValue("5");
//		suffix.setValueByIndex(5);
//
//		FormRadioGroup ethnic = (FormRadioGroup) form.getElement("ethnic");
//		//ethnic.setValue("ETH02");
//		ethnic.setValueByIndex(2);
//
//		pdf.render();
//		pdf.writeTo(new FileOutputStream("C:\\JustFormsPDF\\examples\\AddressForm32A2_out.pdf"));
//
//		System.out.println("DONE ");

	}
}